define(function () {

    var data = {
        eqList:null,
        eqListTitle:''
    };
    var page = {};

    return cache = {
        loadEqList: function (next) {
            if (data.eqList) {
                return next(data.eqList);
            }else{
                ex.jsonp({
                    debug: true,
                    url: path.api + 'V3.0.0/Product/editingRecommendation',
                    method: 'GET',
                    data: {
                        _id: query.listId,
                        title:1
                    },
                    success: function (obj) {
                        if (obj.code == 0) {
                            data.eqList = obj.data.list;
                            data.eqListTitle = obj.data.title;
                            next(data.eqList);
                        }
                    }
                });
            }
        },
        loadEqTitle:function(next){
            if (data.eqListTitle) {
                return next(data.eqListTitle);
            }else{
                ex.jsonp({
                    debug: true,
                    url: path.api + 'V3.0.0/Product/editingRecommendation',
                    method: 'GET',
                    data: {
                        _id: query.listId,
                        title:1
                    },
                    success: function (obj) {
                        if (obj.code == 0) {
                            data.eqList = obj.data.list;
                            data.eqListTitle = obj.data.title;
                            next(data.eqListTitle);
                        }
                    }
                });
            }
        },
        charge:null
    }
});